package cn.iocoder.yudao.module.product.selection.job;

import cn.hutool.core.util.StrUtil;
import cn.iocoder.yudao.framework.quartz.core.handler.JobHandler;
import cn.iocoder.yudao.module.product.selection.service.ZXHXSupplyProductRemovedService;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Component;

/**
 * 供应链数据删除 Job
 *
 * @author 山野羡民
 */
@Component(value = "zxhxSupplyProductRemovedJob")
public class ZXHXSupplyProductRemovedJob implements JobHandler {

    @Resource
    private ZXHXSupplyProductRemovedService zxhxSupplyProductRemovedService;

    @Override
    //@TenantJob
    public String execute(String param) throws Exception {
        int deleteCount = zxhxSupplyProductRemovedService.autoDelete();
        return StrUtil.format("供应链选数据删除：{} 条", deleteCount);
    }

}
